<?php

		
echo "<DIV onclick='event.cancelBubble = true;' class=\"popupLog\" id=\"ProgramStatus\" onMouseUp=\"captureY('ProgramStatus');\">\n
		<FORM action=\"formaction.php\" method=\"post\" name=\"ProgramStatusPopUp\" id=\"ProgramStatusPopUp\" style='padding:0; margin:0;'>
		<TABLE width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">\n
		
  <tr>
	  <td id=\"titleBar\" style=\"cursor:move; background-color:#999999;\" width=\"100%\" align=\"right\">
		  <ilayer width=\"100%\" onSelectStart=\"return false\">
			  <layer width=\"100%\" onMouseover=\"isHot=true;if (isN4) ddN4(ProgramStatus)\" onMouseout=\"isHot=false\">
			  	<TABLE width=\"100%\"><TR><TD align=\"left\" style=\"font-size:10px; font-weight:600; color:#000000; text-decoration:underline;\">CLICK TO DRAG:</TD> <TD align=\"right\"> <a href=\"#\" onClick=\"hideCurrentPopup();return false\"><font color=\"#000000\" size=\"2\" face=\"arial\"  style=\"text-decoration:none\">X</font></a></TD></TR></TABLE>
			  </layer>
		  </ilayer>
	  </td>
  </tr>
  
  
	<TR><TD align='center'>\n
			<TABLE border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#000000\" width='100%'>\n
			    <tr style='padding-top:5px;'>
					<td class='popupHeaders' width='15%'>Action:</td>
					<td style='color:#ffffff; font-size:12px; padding-left:5px;'> Make Active<input name='active' type='radio' value='true' onChange=\"buttonValue('verify')\">&nbsp; | &nbsp;<input name='active' type='radio' value='false' onChange=\"buttonValue('verify')\">Make Inactive</td>
				</tr>
				
				<!--
				<tr style='padding-top:5px;'>
					<td class='popupHeaders' width='15%'>From:</td>
					<td style='color:#ffffff; font-size:12px; padding-left:5px;'>";
					$monthsText = array("January","February","March","April","May","June","July","August","September","October","November","December");
						//Month Drop Down List
						echo("<select name=\"startMonth\" size=\"1\" id=\"setDateMonth\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");

						$i = 0;
						$q = 1;
						while($i < 12){
							echo("<option value=\"$q\">$monthsText[$i]</option>\n");
						++$i;
						++$q;
						}
						echo("</SELECT>\n\n");
						
						//Day Drop Down List
						echo("<select name=\"startDay\" size=\"1\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");
						$i = 0;
						$q = 1;
						while($i < 31){
							echo("<option value=\"$q\">$q</option>\n");
						++$i;
						++$q;
						}
						echo("</SELECT>\n\n");
						
						
						//Year Drop Down List $yearToStartRecords
						echo("<select name=\"startYear\" size=\"1\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");
						$i = 0;
						while($i < 5){
							$futureYears = (date("Y") + $i);
							echo("<option value=\"$futureYears\">$futureYears</option>\n");
						++$i;
						}
						echo"</SELECT>
					</td>
				</tr>
			
			
				<tr style='padding-top:5px;'>
					<td class='popupHeaders' width='15%'>To:</td>
					<td style='color:#ffffff; font-size:12px; padding-left:5px;'>";
						//Month Drop Down List
						echo("<select name=\"endMonth\" size=\"1\" id=\"setDateMonth\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");

						$i = 0;
						$q = 1;
						while($i < 12){
							echo("<option value=\"$q\">$monthsText[$i]</option>\n");
						++$i;
						++$q;
						}
						echo("</SELECT>\n\n");
						
						//Day Drop Down List
						echo("<select name=\"endDay\" size=\"1\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");
						$i = 0;
						$q = 1;
						while($i < 31){
							echo("<option value=\"$q\">$q</option>\n");
						++$i;
						++$q;
						}
						echo("</SELECT>\n\n");
						
						
						//Year Drop Down List $yearToStartRecords
						echo("<select name=\"endYear\" size=\"1\" onChange=\"buttonValue('verify')\">\n");
						echo("<option value=\"NA\">NA</option>\n");
						$i = 0;
						while($i < 5){
							$futureYears = (date("Y") + $i);
							echo("<option value=\"$futureYears\">$futureYears</option>\n");
						++$i;
						}
						echo"</SELECT>
					</td>
				</tr>			
-->
			
		   </table>
	</TD></TR>\n
		

<tr><td>
	<table border='0' cellpadding='0' cellspacing='0' width='100%'>
		<!--<tr> 
			<td align='left' style='font-weight:600; padding-top:5px; font-size:12px;' width='50%'>Recurring: 
			<select name=\"recurring\" size=\"1\" onChange=\"buttonValue('verify')\">\n
			<option value=\"NA\">NA</option>\n
			<option value=\"weekly\">Every Other Week</option>\n
			<option value=\"monthly\">Every Other Month</option>\n
			</select>
			</td>  
		</tr>-->
		
			<TR>\n
				<TD align=\"center\" style='padding-top:5px; padding-bottom:5px; font-size:13px; font-weight:600; color:#990000;' id='confirm'></td>
			</tr>\n
</table></td></tr>

			




<script language=\"JavaScript\">\n
<!--\n
armed = '';
function buttonValue(action){\n
	//modify submit button
	if(action == 'submit' && armed != 'true'){
		document.ProgramStatusPopUp.update.value= '* * *Submit Change* * *'; 
		armed = 'true';
	}else if(action == 'submit' && armed == 'true'){
		document.ProgramStatusPopUp.submit();
	}else if(action == 'verify'){
		document.ProgramStatusPopUp.update.value= 'Verify Change';
		armed = 'false';
		
	}


}\n
//-->\n
</script> \n\n


			
<script language=\"JavaScript\">\n
<!--\n
function confirmNow(){\n
document.getElementById('confirm').innerHTML = \"\";\n
if(document.ProgramStatusPopUp.active[0].checked == true){\n
 myStatus = 'will be set to <u>active</u>';\n
}else{\n
 myStatus = 'will be set to <u>inactive</u>';\n 
}\n


/*
//get to info\n
if(document.ProgramStatusPopUp.endMonth.value == 'NA' || document.ProgramStatusPopUp.endDay.value == 'NA' || document.ProgramStatusPopUp.endYear.value == 'NA'){
	var to = '';
}else{
	var to = ' until ' + document.ProgramStatusPopUp.endMonth.value + '/' + document.ProgramStatusPopUp.endDay.value  + '/' + document.ProgramStatusPopUp.endYear.value;
}

//get from info\n
if(document.ProgramStatusPopUp.startMonth.value == 'NA' || document.ProgramStatusPopUp.startDay.value == 'NA' || document.ProgramStatusPopUp.startYear.value == 'NA'){
	var from = '';
}else{
	var from = ' starting ' + document.ProgramStatusPopUp.startMonth.value + '/' + document.ProgramStatusPopUp.startDay.value  + '/' + document.ProgramStatusPopUp.startYear.value;
}


if(document.ProgramStatusPopUp.recurring.value == 'NA'){ 
	var recurringOpt = '';
}else if(document.ProgramStatusPopUp.recurring.value == 'weekly'){
	var recurringOpt = ' every other week.';
}else{
	var recurringOpt = ' every other month.';
}

*/


//create confirmation...
document.getElementById('confirm').innerHTML = '<hr>' + confirmTitle + ' at ' + confirmTime + ' ' + myStatus +  '<hr>';\n
//document.getElementById('confirm').innerHTML = '<hr>' + confirmTitle + ' at ' + confirmTime + ' ' + myStatus + from + to + recurringOpt + '<hr>';\n


//change button value
buttonValue('submit');


}\n
//-->\n
</script> \n
			
			
			<TR>\n
				<TD align=\"center\" bgcolor=\"#666666\" style='padding-top:5px; padding-bottom:5px;'><input name=\"myAnchor\" type=\"hidden\" value=\"\"><input name=\"time\" type=\"hidden\" value=\"\"><input name=\"title\" type=\"hidden\" value=\"\"><input name=\"ID\" type=\"hidden\" value=\"\"><input name=\"action\" type=\"hidden\" value=\"change_Status\"><input name=\"update\" type=\"button\" class=\"inputButton\"  value=\"Verify Change\" onClick='confirmNow()'>&nbsp; &nbsp; <input name=\"close\" type=\"button\" class=\"inputButton\"  value=\"Close\" onClick=\"hideCurrentPopup()\"></TD>\n
			</TR>\n
			
		
		</TABLE></FORM>\n
	</DIV>\n\n";
?>


							